package com.androidsocketd.dao;

import android.arch.persistence.room.Dao;
import android.arch.persistence.room.Delete;
import android.arch.persistence.room.Insert;
import android.arch.persistence.room.Query;

import com.androidsocketd.bean.Classes;
import com.androidsocketd.bean.Team;

import java.util.List;

/**
 * Created by yao on 2021/3/23.
 * Describe
 */
@Dao
public interface TeamDao {

    @Query("SELECT * FROM Team")
    List<Team> getAllTeam();

    @Query("SELECT * FROM Team WHERE teamId=:teamId")
    Team getAllTeamByTeamId(String teamId);

    @Insert
    void insert(List<Team> classesList);

    @Delete
    void delete(List<Team> classesList);
}
